package com.java.model;
import java.io.Serializable;

// 课程成绩类
class CourseGrade implements Serializable {
    private String courseName;
    private double grade;

    public CourseGrade(String courseName, double grade) {
        this.courseName = courseName;
        this.grade = grade;
    }

    //getter和setter方法

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public double getGrade() {
        return grade;
    }

    public void setGrade(double grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return courseName + ": " + grade;
    }
}
